<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateHintStatusesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('hint_statuses', function (Blueprint $table) {
            $table->increments('id');
            $table->string('class')->default('')->comment('提示类')->index();
            $table->string('hintable_id')->default('')->comment('关联ID')->index();
            $table->string('hintable_type')->default('')->comment('关联类型')->index();
            $table->string('comment')->default('')->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('hint_statuses');
    }
}
